package com.yuan.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuan.blog.dto.InvitataionStatusVo;
import com.yuan.blog.dto.InvitationVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @program: blog-core
 * @description:
 * @author: yuan_boss
 * @create: 2023-02-13 20:32
 **/

@FeignClient(name = "blog-web")
public interface WebInvitationService {

    @GetMapping("/blog/InvitationController/test")
    public String test();

    @PostMapping("/blog/InvitationController/page")
    @ResponseBody
    public Page<InvitationVo> page(@RequestBody Page<InvitationVo> page);

    @PostMapping("/blog/InvitationController/updateType")
    @ResponseBody
    public Boolean updateType(@RequestBody InvitataionStatusVo vo);

    @GetMapping("/blog/InvitationController/invitationInfo/{id}")
    @ResponseBody
    public InvitationVo invitationInfo(@PathVariable Integer id);

    @PostMapping("/blog/InvitationController/dataList")
    @ResponseBody
    public Map dataList(@RequestBody Page<InvitationVo> page);

}
